package com.taotao.common.enums;

public enum TemplateDesc {
	Template_1("aKai5FWzISKsUFx79GmcV9S4zovcOddMbrxSnCk_JSc","客户咨询提醒"),
	Template_2("W7JIYqxFzz_chWmunx_rvTfUN63S9ainEK38z9pgJ84","发货提醒通知"),
	Template_3("Oo3J7b3ts62pPmC9scd9D6kuzCEyG9O4TUNeHt2oHOs","购买成功通知"),
	Template_4("tzieAQLw6v3gGdwqqJjq4ZmhMP2F5v0NUYCTXjHIEyk","订单发货提醒"),
	Template_5("WgFoPpdJaaqO3yRocNnEtzGx1s4GBTj_cO0BApIq7Vc","退款成功通知");
	
	private String code;
	private String desc;
	
	public String getCode() {
		return code;
	}
 
	public void setCode(String code) {
		this.code = code;
	}
 
	public String getDesc() {
		return desc;
	}
 
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	TemplateDesc(String code,String desc){ 
		this.code=code;
		this.desc=desc;
	}
	
	public static String getValue(String code){
		for (TemplateDesc type : values()) {
			if(type.getCode().equals(code)){
				return type.getDesc();
			}
		}
		return null;
	}
}
